﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DLRMonthlyStatementPrint.aspx.cs" Inherits="MonthlyReportPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
  
  <link rel="stylesheet" type="text/css" href="css/printer.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>    
    <table cellpadding="0" cellspacing="0" border="0">
      <tr class="reportHeader">
        <td colspan="2" class="name"><h3>Simran Servives</h3></td>
        <td colspan="2" style="text-align:center; width:110mm;">
          <h1><asp:label id="lblReportTitle"  text="Monthly AC Installation Report" runat="server"></asp:label></h1>
        </td>
        <td colspan="2">
          <h3><asp:label id="lblMonthValue" runat="server"></asp:label></h3>
        </td>
      </tr>      
      <tr class="reportProfile">
        <td><asp:label id="lblDealer"  text="Dealer" runat="server"></asp:label></td>
        <td style="text-align:right;"><asp:label id="lblDealerValue" runat="server"></asp:label></td>
       <td></td>
       <td></td>
        <td><asp:label id="lblDated"  text="Dated" runat="server"></asp:label></td>
        <td style="text-align:right;"><asp:label id="lblDatedValue" runat="server"></asp:label></td>
      </tr>
      <tr >
        <td colspan="6" style=" text-align:center;">&nbsp;</td>
      </tr>
      <tr >
        <td colspan="6" class="reportSection" >Summary</td>
      </tr>
      <tr>
        <td colspan="6">
          <div class="pGrid">
            <asp:GridView ID="gvDlrCallCallSummary" runat="server" 
              AutoGenerateColumns="false" onrowdatabound="gvDlrCallCallSummary_RowDataBound">
            <Columns>
              <asp:TemplateField HeaderText="Call Status" ItemStyle-Width="70mm" >
                <ItemTemplate><asp:Label ID="lblStatusName" runat="server" Text='<%#Eval("CallStatus.StatusName")%>'></asp:Label></ItemTemplate>                
              </asp:TemplateField>
              <asp:BoundField DataField="Count" HeaderText="Count" ReadOnly="True" ItemStyle-Width="70mm"
                SortExpression="ID">               
              </asp:BoundField>          
               <asp:BoundField DataField="DealerAcDR" HeaderText="Dealer DR" ReadOnly="True" ItemStyle-Width="70mm"
                SortExpression="ID">                
              </asp:BoundField>
              <asp:BoundField DataField="DealerAcCR" HeaderText="Dealer CR" ItemStyle-Width="70mm">               
              </asp:BoundField>
               <asp:BoundField DataField="DealerDipositCR" HeaderText="Dealer Deposit" ItemStyle-Width="70mm">               
              </asp:BoundField>
            </Columns>
          </asp:GridView> 
          </div>       
        </td>
      </tr>
      <tr>
        <td colspan="6" class="reportSection">Details</td>
      </tr>
      <tr>
        <td colspan="6">
          <div class="pGrid">
            <asp:GridView ID="gvDlrCallDetails" runat="server" AutoGenerateColumns="False"
              GridLines="Both" Width="21cm" 
              DataKeyNames="ID">            
              <Columns>              
                <asp:BoundField DataField="CallReceiveDate" HeaderText="Date" DataFormatString="{0:dd/MMM/yy}">               
                </asp:BoundField>
                <asp:TemplateField HeaderText="Call Type" >
                  <ItemTemplate><%#Eval("CallType.CallTypeName")%></ItemTemplate>                
                </asp:TemplateField>              
                <asp:TemplateField HeaderText="Customer" ItemStyle-Wrap="false" >
                  <ItemTemplate>
                    <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("Customer.CustomerName")%>'></asp:Label>
                  </ItemTemplate>            
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Phone No" ItemStyle-Wrap="false" >
                  <ItemTemplate>
                    <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("Customer.MobileNo1")%>'></asp:Label>
                  </ItemTemplate>            
                </asp:TemplateField>
                <asp:TemplateField HeaderText="AC Brand" ItemStyle-Wrap="false" >
                  <ItemTemplate>
                    <asp:Label ID="lblACBrand" runat="server" Text='<%#Eval("ACBrand.ACBrandName")%>'></asp:Label>
                  </ItemTemplate>            
                </asp:TemplateField>             
                <asp:BoundField DataField="ACModelNo" HeaderText="Model" ></asp:BoundField>
                <asp:BoundField DataField="ACSerialNo" HeaderText="Sl No." ></asp:BoundField>
                <asp:BoundField DataField="ACPurchasedDate" HeaderText="Date Sold"  DataFormatString="{0:dd/MMM/yy}"></asp:BoundField>              
                <asp:TemplateField HeaderText="Status" >
                  <ItemTemplate><%#Eval("CallStatus.StatusName")%></ItemTemplate>                
                </asp:TemplateField>              
                <asp:TemplateField HeaderText="Comment" ItemStyle-Width="23mm">
                  <ItemTemplate>
                    <asp:Label ID="lblComment" runat="server" Text='<%#Eval("Remarks")%>'></asp:Label>                  
                  </ItemTemplate>
                  <ItemStyle></ItemStyle>
                </asp:TemplateField>              
                <asp:BoundField DataField="DealerAcDR" HeaderText="Debit" ></asp:BoundField>
                <asp:BoundField DataField="DealerAcCR" HeaderText="Credit" ></asp:BoundField>
                <asp:BoundField DataField="DealerDipositCR" HeaderText="Deposit" ></asp:BoundField>
              </Columns>            
            </asp:GridView>
          </div>
        </td>
      </tr>
    </table>
    
    </div>
    </form>
</body>
</html>
